package com.suke.czx.modules.tb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;



/**
 * 评论表
 *
 * @author developer
 * @email developer@163.com
 * @date 2025-05-17 21:50:15
 */
@Data
@TableName("tb_comment")
public class TbComment implements Serializable {
public static final long serialVersionUID = 1L;

		@TableId(type = IdType.AUTO)
				@ApiModelProperty(value = "评论id")
	@JsonProperty(value = "commentsId")
public Integer commentsId;

				@ApiModelProperty(value = "用户id")
	@JsonProperty(value = "userId")
public String userId;

				@ApiModelProperty(value = "产品id")
	@JsonProperty(value = "productId")
public Integer productId;

				@ApiModelProperty(value = "评论内容")
	@JsonProperty(value = "content")
public String content;

				@ApiModelProperty(value = "是否置顶（商家操作）")
	@JsonProperty(value = "isTop")
public Integer isTop;

				@ApiModelProperty(value = "点赞数（缓存）")
	@JsonProperty(value = "likeCount")
public Integer likeCount;

			@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
		@JsonProperty(value = "createDate")
public Date createDate;


}
